package com.xms.web.view.flow;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 * WorkFlowViewController
 * </p>
 *
 * @author migo
 * @since 2021/9/27
 */
@Controller
@RequestMapping("{org}/flow")
public class WorkFlowViewController {
    private static final String MODULE_PATH = "flow";
    public void WorkFlowViewController() {

    }

    @PostMapping("start")
    public String start(){
        return MODULE_PATH + "/start";
    }

    @PostMapping("processing")
    public String processing(){
        return MODULE_PATH + "/processing";
    }

    @PostMapping("instancedetail")
    public String instancedetail(){
        return MODULE_PATH + "/instancedetail";
    }

    @GetMapping("statelist")
    public String statelist(){
        return MODULE_PATH + "/statelist";
    }
}
